<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title><{$words}></title>
	<meta name="keywords" content="<{$words}>"/>
	<meta name="description" content="<{$words}>"/>
	<script>
		var APP = '<{$smarty.const.__APP__}>';

	</script>
	<link rel="stylesheet" href="<{$smarty.const.__PUBLIC__}>/Css/common.css" />
	<link rel="stylesheet" href="<{$smarty.const.__PUBLIC__}>/Css/index.css" />
	<script type="text/javascript" src='<{$smarty.const.__PUBLIC__}>/Js/jquery-1.7.2.min.js'></script>
	<script type="text/javascript" src="<{$smarty.const.__PUBLIC__}>/Js/search.js"></script>
	<style>
		#search_box{
			display:none;font-size:18px;text-align:left;padding:10px;position:absolute;top:88px;left:20px;width:516px;border:1px solid #3EAF0E;z-index:500;background:white;
		}
		#search_box li{
			cursor: default;
		}
		#search_box li:hover{
			border-bottom:1px dashed black;
		}
		#search_box span{
			float:right;font-size:14px;color:#999;font-style: italic;"
		}
	</style>
</head>
<body>
	<!-- 搜索顶部 -->
	<div class="search_top">
		<div class="sealeft">
			<a href=""><img src="<{$smarty.const.__PUBLIC__}>/images/t0150f9b7bd1b41d84e.png" alt="" /></a>
		</div>

	</div>
	<!-- 搜索顶部结束 -->
	<!-- 搜索框 -->
	<div class="search_box" style="display:relative;">
		<form autocomplete="off" action="<{$smarty.const.__APP__}>?c=search" method="POST">
			<input type="text" value="<{$words}>" autocomplete="false" name="words" class="searchInput sech-cons"/>
			<input type="submit" value="搜索答案" class="sub"/>
		</form>
		<a href="<{$smarty.const.__APP__}>?c=ask">我要提问</a>
		<div id="search_box">
			<ul>

			</ul>
		</div>
	</div>
	
	
	<!-- 搜索框结束 -->
	<!-- 搜索内容 -->
	<div class="searcont">
		<{if count($searchResult)==0}>
			<h1>对不起没有搜索到您想要的内容 V_V <a href="<{$smarty.const.__APP__}>">点击返回首页</a></h1>
			<{else}>
			<{foreach from=$searchResult item=result}>
				<ul>
					<li> <a href="<{$smarty.const.__APP__}>?c=show&asid=<{$result.asid}>" class="title"><{$result.content|substr:40}></a></li>
					<li><{$result.content|substr:200}></li>
					<li class="time"><span><{$result.title}> - <{$result.answer}>个回答</span> - 提问时间: <{$result.time|date_format:"%Y-%m-%d"}></li>
				</ul>
			<{/foreach}>
		<{/if}>
		
	</div>
	<!-- 搜索内容结束 -->

<!-- 底部 -->
	<{include file="../Common/foot.html"}>
<!--[if IE 6]>
    <script type="text/javascript" src="./Js/iepng.js"></script>
    <script type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    </script>
<![endif]-->
</body>
</html>
<!-- 底部结束 -->